class Corpus {
    String name
    String category
    String description

    static hasMany = [books:Book]

    Date dateCreated
    Date lastUpdated

    static constraints = {
        name(nullable:false, blank:false)
        category(nullable:true)
        description(nullable:true)

    }

    String toString() {
        name ?: "n.a."
    }
}
